package com.tensquare.search.repository;

import com.tensquare.search.pojo.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.awt.print.Pageable;

public interface ArticleSearchRepository extends ElasticsearchRepository<Article,String> {
    //检索
    public Page<Article> findByTitleOrContentLike(String title, String content, Pageable pageable);
}
